<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\blog\model;
use think\Model;
use think\Db;
class CashierModel extends Model
{
    protected $table = 'mt_pay';
    /*
     * 查询收银员性能
     * */
    public function index($where)
    {
          
          $data=DB::name('order')->where($where)->order('id desc')->paginate(2);
          return $data;
    }
    public function shop()
    {
        $data=DB::name('store')->order('id desc')->select();
        return $data;
    }

}